package com.yilife.hmstr.controller;

import com.yilife.hmstr.service.HmstrRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/hmstr")
public class HmstrRecordController {
	
	@Autowired
	private HmstrRecordService hmstrRecordService;

	/**
	 * 增删改查 CRUD
	 */
//	@RequestMapping("/add")
//	public HmstrRecord add() {
//		HmstrRecord fer=new HmstrRecord(21322, 432, "100cm", "100kg", "很多", "2017/3/8 9:21", 11);
//		System.err.println("插入一条数据：" + hmstrRecordService.insert(fer));
//		long id=fer.getHmstrId();
//		return hmstrRecordService.selectById(id);
//	}
	

}
